/**
 * 
 */
package com.desksoft.ecommerce.util.stargrade;


/***************************************
 * <pre>
 * 版权所有：杭州迪科软件 保留所有权利
 * 创建日期: 11 14, 2012
 * 创建作者：刘文龙
 * 文件名称：Stargrade.java
 * 版本：1.0
 * 功能：
 * 最后修改时间：11 14, 2012
 * 修改记录：
 * </pre>
 *****************************************/
public class Stargrade {

	/**
	 * @param grade
	 * @return
	 */
	public static String getGradeImg(Float grade) {
		String result = "";
		if (grade == 0) {
			result = "0Star.png";
		} else if (grade > 0 && grade < 1) {
			result = "0.5Star.png";
		} else if (grade == 1) {
			result = "1Star.png";
		} else if (grade > 1 && grade < 2) {
			result = "1.5Star.png";
		} else if (grade == 2) {
			result = "2Star.png";
		} else if (grade > 2 && grade < 3) {
			result = "2.5Star.png";
		} else if (grade == 3) {
			result = "3Star.png";
		} else if (grade > 3 && grade < 4) {
			result = "3.5Star.png";
		} else if (grade == 4) {
			result = "4Star.png";
		} else if (grade > 4 && grade < 5) {
			result = "4.5Star.png";
		} else if (grade == 5) {
			result = "5Star.png";
		}
		return result;
	}
}
